package 工厂模式.abstractfactory;

import 工厂模式.abstractfactory.factory.Factory;
import 工厂模式.abstractfactory.factory.FactoryParent;
import 工厂模式.abstractfactory.products.Refund;
import 工厂模式.method.products.Pay;

public class Main {
    public static void main(String[] args) {
        Factory factory = FactoryParent.createFactory("ali");
        Pay pay = factory.createPay();
        pay.pay();
        Refund refund = factory.createRefund();
        refund.refund();

    }
}
